import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useUserStore = defineStore(
  'job-user',
  () => {
    const token = ref('') //定义token
    const setToken = (t) => (token.value = t) //设置token
    return { token, setToken }
  },
  {
    persist: true //持久化
  }
)
